import request from "@/utils/request";
import { WebCount, WebInfo } from "@/types/webInfo";

/**
 * 获取网站配置
 * @returns
 */
export const queryWebInfo = (): ResponseResult<WebInfo> =>
  request({
    url: `${process.env.VUE_APP_BASE_API}/webInfo`,
    method: "GET",
  });
/**
 * 获取网站配置
 * @returns
 */
export const queryWebCount = (): ResponseResult<WebCount> =>
  request({
    url: `${process.env.VUE_APP_BASE_API}/webInfo/countInfo`,
    method: "GET",
  });
